package com.exception;

/**
 * ClassName: GlobalException
 * Description:
 *
 * @Author L_Z_R
 * @Create 2025/05/13 19:10
 * @Version 1.0
 */
public class GlobalException extends RuntimeException{
    private Integer errorCode; //自定义错误码

    public GlobalException(Integer errorCode, String message) {
        super(message);
        this.errorCode = errorCode;
    }

    public Integer getErrorCode() {
        return errorCode;
    }
}
